package com.zengqingfa.designpattern.create.prototype.deep;

import java.io.Serializable;

/**
 *
 * @fileName: Owner
 * @author: zengqf3
 * @date: 2021-4-23 17:53
 * @description:
 */
public class Owner implements Cloneable, Serializable {

    private String name;

    public Owner(String name) {
        this.name = name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return "Owner{" + "name='" + name + '\'' + '}' + super.toString();
    }
}
